package com.huarui.purchaseOrder.engine;

import com.huarui.purchaseOrder.model.PurOrSaleOrder;
import com.huarui.purchaseOrder.model.PurOrSaleOrderDetail;
import com.huarui.task.service.TaskEngineService;
import com.huarui.task.service.TaskEngineServiceAware;

public class PurchaseEngineWrapper  implements PurchaseEngine , TaskEngineServiceAware {
	
	private PurchaseEngine engine;
	private TaskEngineService taskEngineService;
	
	

	public void setEngine(PurchaseEngine engine) {
		this.engine = engine;
	}

	@Override
	public void accept(PurOrSaleOrder order, PurOrSaleOrderDetail detail) {
		
		engine.accept(order, detail);
		
	}

	@Override
	public void commit2registedSeller(PurOrSaleOrder order,
			PurOrSaleOrderDetail detail) {

		engine.commit2registedSeller(order, detail);
	}

	@Override
	public void commit2unregistSeller(PurOrSaleOrder order,
			PurOrSaleOrderDetail detail) {
		engine.commit2unregistSeller(order, detail);
	}

	@Override
	public void disallow(int orderId) {
		engine.disallow(orderId);
	}

	@Override
	public void edit(PurOrSaleOrder order, PurOrSaleOrderDetail detail) {
		engine.edit(order, detail);
	}

	@Override
	public void receive(int orderId) {
		// TODO Auto-generated method stub
		engine.receive(orderId);
	}

	@Override
	public void ship(int orderId) {
		// TODO Auto-generated method stub
		engine.ship(orderId);
	}

	@Override
	public TaskEngineService getTaskEngineService() {
		// TODO Auto-generated method stub
		return this.taskEngineService;
	}

	@Override
	public void setTaskEngineService(TaskEngineService taskEngineService) {
		this.taskEngineService = taskEngineService;
		
	}
	

}
